package com.wans.guli.auth.feign;

import com.wans.guli.auth.vo.MemberRegisterVO;
import com.wans.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "guli-member", path = "/guli-member")
public interface MemberFeignClient {
    @PostMapping("/member/member/register")
    @ResponseBody
    R register(@RequestBody MemberRegisterVO member);

    @GetMapping("/member/member/getUserInfo")
    @ResponseBody
    R getUserInfo(@RequestParam("accessToken") String accessToken);

    @PostMapping("/member/member/loginUser")
    R login(@RequestParam("loginAccount") String loginAccount, @RequestParam("password") String password);
}
